package com.engr.business.web;

import com.engr.business.service.JobService;
import com.engr.business.util.ResultVoUtils;
import com.engr.business.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: business
 * @desc: api
 * @author: lyx
 * @date: 2019-01-04 12:08
 **/
@RestController
@RequestMapping(value = "/api/order")
public class BusinessRestController {

    @Autowired
    private JobService jobService;

    @GetMapping("/hello")
    public ResultVO hello(){

        return ResultVoUtils.success(jobService.executeJob());
    }

}
